﻿using System;
using System.Windows.Forms;

namespace ManilaToday
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [MTAThread]
        static void Main(string[] args)
        {
            if (args.Length > 0)
            {
                if (args[0] == "/install")
                {
                    TabInstaller.InstallTodayTab();
                }
                else if (args[0] == "/uninstall")
                {
                    TabInstaller.UnInstalTodayTab();
                }
                else
                {
                    MessageBox.Show("InvalidParameter: " + args[0]);
                }
            }
            else
            {
                Application.Run(new MainForm());
            }
        }
    }
}